package factory.simplefactory;

public class OutputFactory {
	public static Output getOutput(String printtype) {
		if("printer".equals(printtype)) {
			return new Print();
		}
		if("betterprinter".equals(printtype)) {
			return new BetterPrint();
		}
		return null;
	}
}
